package com.freesun.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户的菜单
 */
@Data
@NoArgsConstructor
public class Menu implements Serializable {

    private static final long serialVersionUID = -2455956814078023171L;
    @ApiModelProperty("菜单的子菜单")
    private List<Menu> list=new ArrayList<Menu>();
    @ApiModelProperty("菜单的名称")
    private String name;
    @ApiModelProperty("菜单的地址")
    private String url;
    @ApiModelProperty("菜单的ID")
    private Long menuId;

    public Menu(String name, String url, Long menuId) {
        this.name = name;
        this.url = url;
        this.menuId = menuId;
    }
}
